package com.outerClass.lambdaTest;

import java.util.Scanner;

/**
 * @Author "milian"
 * @Date 2021/7/18 0018 16:21
 */
public class test1 {
    public static void main(String[] args) {
        method(()->{
            Scanner sc = new Scanner(System.in);
            String s = sc.nextLine();
            return s;
        });
    }
    public static void method(IGetString getString){
        String str = getString.get();
        System.out.println(str);
    }
}
interface IGetString{
    String get();
}
